var db = require("./db")
var mongoose = require("mongoose")

var ObjectId = mongoose.Schema.Types.ObjectId;
var GoodsSchema = new mongoose.Schema({
    name:String,
    icon:String,
    count:Number,
    info:String,
    shopid:{type:ObjectId,ref:'Shop'},
    price:Number,
    likeCount:Number,
    type:Number,
    // delete:Boolean,
    off:Boolean
})



module.exports = db.model('Goods',GoodsSchema)